﻿<ResourceDictionary xmlns:sdk="http://schemas.microsoft.com/winfx/2006/xaml/presentation/sdk" 
  xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation" 
  xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
  xmlns:navigation="clr-namespace:System.Windows.Controls;assembly=System.Windows.Controls.Navigation">

    <ResourceDictionary.MergedDictionaries>
        <ResourceDictionary Source="CommonStyles.xaml" />
    </ResourceDictionary.MergedDictionaries>
    <!-- Pages Layout -->
    <Style x:Key="PageLayoutStyle" TargetType="Grid">
        <Setter Property="Margin" Value="5" />
    </Style>
    <Style x:Key="FormCaptionStyle" TargetType="TextBlock">
        <Setter Property="FontSize" Value="14" />
        <Setter Property="FontWeight" Value="Bold" />
    </Style>
    <Style x:Key="FormFieldLabelStyle" TargetType="TextBlock">
        <Setter Property="Margin" Value="0 5 0 0" />
        <Setter Property="VerticalAlignment" Value="Top" />
    </Style>
    <Style x:Key="FormFieldStyle" TargetType="Control">
        <Setter Property="Margin" Value="3 3 3 3" />
        <Setter Property="VerticalAlignment" Value="Center" />
    </Style>
    <Style x:Key="FormFieldCommentStyle" BasedOn="{StaticResource FormFieldStyle}" TargetType="TextBox">
        <Setter Property="Margin" Value="3 3 3 3" />
        <Setter Property="AcceptsReturn" Value="True" />
        <Setter Property="TextWrapping" Value="Wrap" />
        <Setter Property="VerticalAlignment" Value="Stretch" />
    </Style>

    <!-- ============================ Dialog Buttons ===================================== -->
    <Style x:Key="SaveCancelButtonsGridStyle" TargetType="Grid" >
        <!--<Setter Property="Margin" Value="5" />-->
    </Style>
    <Style x:Key="SaveCancelButtonStyle" TargetType="Button" >
        <Setter Property="Margin" Value="5 5 3 5" />
    </Style>

    <!-- ========================= Commond Dialog Style ===================================== -->
    <Style x:Key="DataEntityDialogStyle" TargetType="FrameworkElement">
        <Setter Property="Margin" Value="5" />
    </Style>
    
    <!-- ========================= Manage Role Dialog ===================================== -->
    <Style x:Key="ManageRoleDialogStyle" BasedOn="{StaticResource DataEntityDialogStyle}" TargetType="FrameworkElement">
    </Style>

    <!-- ========================= Create User Dialog ===================================== -->
    <Style x:Key="ManageUserDialogStyle" BasedOn="{StaticResource DataEntityDialogStyle}" TargetType="FrameworkElement">
    </Style>
    <Style x:Key="IsApprovedStyle" TargetType="CheckBox">
        <Setter Property="Margin" Value="0 5 0 0" />
        <Setter Property="VerticalAlignment" Value="Top" />
    </Style>

    <!-- ========================= Edit User Dialog ======================================= -->

</ResourceDictionary>